From: Jonas Dreßler Date: Mon, 24 Feb 2020 10:19:28 +0000 (+0100) Subject: overview: Hide the overview on session mode hasOverview changes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~772^2^2~39 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b3999e40780de301e861b1cf59ba967b8bc9b721;p=gnome-shell.git overview: Hide the overview on session mode hasOverview changes If the sessionMode does not allow to show the overview, we should also hide an already visible overview. This fixes a bug where, if the lockscreen was shown while the overview was visible, the Ctrl+Alt+Tab popup would allow navigating inside the overview because the overview actor is still mapped. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1043 --- diff --git a/js/ui/overview.js b/js/ui/overview.js index 45d12340b..4b30b6f87 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -270,7 +270,11 @@ var Overview = class { } _sessionUpdated() { - this.isDummy = !Main.sessionMode.hasOverview; + const { hasOverview } = Main.sessionMode; + if (!hasOverview) + this.hide(); + + this.isDummy = !hasOverview; this._createOverview(); }